package hangban.com.maochang.impl;



import hangban.com.maochang.dao.UpdateAirInfoDao;
import hangban.com.maochang.util.BaseDao;

import java.util.Date;

public class UpdateAirInfoDaoImpl extends BaseDao implements UpdateAirInfoDao {
    @Override
    public void updateAirInfo(int id, int hanghao, String mmd, Date riq) {
        String sql="update Airinfo set hangcard=? ,mudi=?,datefei=? where id=?";

        Boolean update = super.update(sql, new Object[]{hanghao, mmd, riq, id});

        if(update){
            System.out.println("更新成功");
        }else{
            System.out.println("更新失败");
        }

    }
}
